﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class HpCtrl : MonoBehaviour {
    private Slider HpBar;

    // Use this for initialization
    void Start () {
        HpBar = GetComponent<Slider>();

	}
	
	// Update is called once per frame
	void Update () {
	}
    void show(int health) {
        HpBar.value = (float)health / 100.0f;    
}
}
